#ifndef COMMAND_UTILS_H
#define COMMAND_UTILS_H
#include "common.h"
#include <map>
using std::map;
typedef enum {DB_CMD,TABLE_CMD}cmd_level;
typedef enum {CMD_CREATE,CMD_DROP,CMD_USE,CMD_INSERT,CMD_SELECT,CMD_DELETE,CMD_EXIT,CMD_INFO,CMD_HELP} cmd_type;
typedef struct{
    cmd_level level;
    cmd_type type;
    std::string args;
}Command;
/*命令转为Command*/
Command strtok_command(string cmd,cmd_level level);
    /*create_table_helper函数实现在flex（create_table.l）*/
map<string,string> create_table_helper(string args);
#endif
